package com.fit.dao.language;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.Language;

public interface LanguageDAO {

	@CommitAfter
	public boolean save(Language newLanguage);
	
	public List<Language> findAll();
	
	public Language findByID(Long id);
	
	@CommitAfter
	public boolean delete(Language language);
	
	@CommitAfter
	public boolean deleteByID(Long id);
	
	@CommitAfter
	public boolean update(Language language);
}
